import request from "@/utils/request";

export function getList(params) {
  return request({
    url: "/member/mpTemp/getList",
    method: "get",
    params,
  });
}
export function getListFromWx(params) {
  return request({
    url: "/member/mpTemp/getListFromWx",
    method: "get",
    params,
  });
}

export function detail(id) {
  return request({
    url: "/member/mpTemp/detail",
    method: "get",
    params: { id },
  });
}
export function del(id) {
  return request({
    url: "/member/mpTemp/del",
    method: "POST",
    data: { id },
  });
}

export function add(data) {
  return request({
    url: "/member/mpTemp/add",
    method: "POST",
    data,
  });
}

export function change(data) {
  return request({
    url: "/member/mpTemp/change",
    method: "POST",
    data,
  });
}
